//
//  ChongZhiViewController.m
//  duoduo
//
//  Created by wanghao on 16/10/12.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "ChongZhiViewController.h"

@interface ChongZhiViewController ()
@property (weak, nonatomic) IBOutlet UITextField *moneyText;

@end

@implementation ChongZhiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self initUI];
    self.title = @"充值";

}

- (void)initUI
{

    _moneyText.layer.borderColor = LXHexColor(0xF5F6F7).CGColor;
    _moneyText.layer.borderWidth = 1;


    self.view.backgroundColor = LXHexColor(0xF5F6F7);

    UIButton * button = [[UIButton alloc]init];
    button.frame = CGRectMake(25, ScreenHeight-150, ScreenWidth-50, 50);
    button.backgroundColor = LXHexColor(0x5DCA68);
    [button setTitle:@"确认充值" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:22];
    button.layer.cornerRadius = 6;
    button.layer.masksToBounds = YES;
    [button addTarget:self action:@selector(chongzhiClick) forControlEvents:UIControlEventTouchUpInside];

    [self.view addSubview:button];
}

- (void)chongzhiClick
{
    NSLog(@"快充钱");
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
    self.tabBarController.tabBar.hidden=YES;
}

@end
